package cloudPayAdmin.admin.dbapp.entity.traffic;

import java.util.LinkedHashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_picture")
public class TPicture {
	
	public static final String TYPE_UPLOAD = "1";
	public static final String TYPE_UPLOAD_MSG = "上传图片";
	public static final String TYPE_SCREENSHOT = "2";
	public static final String TYPE_SCREENSHOT_MSG = "视频截图";
	public static final String TYPE_SCREENSHOT_BOARDCAST = "3";
	public static final String TYPE_SCREENSHOT_BOARDCAST_MSG = "播放中的截图";

	public static Map<String,String> initTypeMap() {
		Map<String,String> typeMap = new LinkedHashMap<String,String>();
		typeMap.put(TYPE_UPLOAD, TYPE_UPLOAD_MSG);
		typeMap.put(TYPE_SCREENSHOT, TYPE_SCREENSHOT_MSG);
		return typeMap;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "PICTURE_ID")
	private Long pictureId;
	
	@Column(name = "TYPE")
	private String type;
	
	@Column(name = "VIDEO_ID")
	private Long videoId;
	
	@Column(name = "VIDEO_TIME")
	private Long videoTime;
	
	@Column(name = "PICTURE_NAME")
	private String pictureName;
	
	@Column(name = "URL")
	private String url;
	
	@Column(name = "HEIGHT")
	private Integer height;
	
	@Column(name = "WIDTH")
	private Integer width;
	
	@Column(name = "LONGITUDE")
	private String longitude;
	
	@Column(name = "LATITUDE")
	private String latitude;
	
	@Column(name = "TAG")
	private String tag;
	
	@Column(name = "STATUS")
	private String status;
	
	@Column(name = "CREATE_TIME")
	private String createTime;
	
	@Column(name = "UPDATE_TIME")
	private String updateTime;
	
	@Column(name = "ENABLE")
	private boolean enable = Boolean.TRUE;

	public Long getPictureId() {
		return pictureId;
	}

	public void setPictureId(Long pictureId) {
		this.pictureId = pictureId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getVideoId() {
		return videoId;
	}

	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}

	public Long getVideoTime() {
		return videoTime;
	}

	public void setVideoTime(Long videoTime) {
		this.videoTime = videoTime;
	}

	public String getPictureName() {
		return pictureName;
	}

	public void setPictureName(String pictureName) {
		this.pictureName = pictureName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	
	
}
